﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Sripirom.ATS.Core.Validator
{
    /// <summary>
    /// Generates an error message for an operation based on the validation results
    /// </summary>
    public interface IErrorMessageGenerator
    {
        /// <summary>
        /// Generates the error messages
        /// </summary>
        /// <param name="operationName">Name of the operation.</param>
        /// <param name="validationResults">The validation results.</param>
        /// <returns></returns>
        String GenerateErrorMessage(String operationName, IEnumerable<ValidationResult> validationResults);
    }
}